﻿using System.Threading;
using ByteDance.Union;
using UnityEngine;


public sealed class AppDownloadListener : IAppDownloadListener
{
    public AppDownloadListener()
    {
    }

    public void OnIdle()
    {
        Debug.Log("CSJM_Unity "+$"OnIdle 下载未开始 on main thread: ");

    }

    public void OnDownloadActive(
        long totalBytes, long currBytes, string fileName, string appName)
    {
        Debug.Log("CSJM_Unity "+$"OnDownloadActive 下载中，点击下载区域暂停  on main thread: ");
    }

    public void OnDownloadPaused(long totalBytes, long currBytes, string fileName, string appName)
    {
        Debug.Log("CSJM_Unity "+$"OnDownloadPaused 下载暂停，点击下载区域继续  on main thread: ");
    }

    public void OnDownloadFailed(long totalBytes, long currBytes, string fileName, string appName)
    {
        Debug.LogError("CSJM_Unity "+$"OnDownloadFailed 下载失败，点击下载区域重新下载  on main thread: ");
    }

    public void OnDownloadFinished(long totalBytes, string fileName, string appName)
    {
        Debug.Log("CSJM_Unity "+$"OnDownloadFinished 下载完成  on main thread: ");
    }

    public void OnInstalled(string fileName, string appName)
    {
        Debug.Log("CSJM_Unity "+$"OnInstalled 安装完成，点击下载区域打开  on main thread: ");
    }
}

